package com.ziyun.erp.modules.order.dao;

import com.ziyun.erp.modules.order.entity.OrderItemEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import com.ziyun.erp.modules.order.vo.OrderItemVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 订单详情表
 * 
 * @author xueqz
 * @email sunlightcs@gmail.com
 * @date 2018-08-06 15:24:44
 */
@Service("orderItemDao")
public interface OrderItemDao extends BaseMapper<OrderItemEntity> {

    List<OrderItemEntity> selectByOrderId(Long orderId);

    List<OrderItemVo> selectOrderItemVosByOrderId(@Param("orderId") Long orderId);

    OrderItemVo selectOrderItemVoById(@Param("itemId") Integer itemId);

    int updateByMap(@Param("map") Map<String, Object> map, @Param("itemId") Integer itemId);
}
